#!/usr/bin/env python3

li = """
unclone  https://flurry-rdd.s3.amazonaws.com/downloads/670118.json.gz?AWSAccessKeyId=AKIAZBZSXBIDLIVHIE7S&Expires=1595926686&Signature=imGeALpEMJ7Ile1EzgD9dEZVrbM%3D
gb  https://flurry-rdd.s3.amazonaws.com/downloads/670104.json.gz?AWSAccessKeyId=AKIAZBZSXBIDLIVHIE7S&Expires=1595926718&Signature=sUwewc%2BONV3%2FNthLHOCNfQ2CAow%3D
gb  https://flurry-rdd.s3.amazonaws.com/downloads/670107.json.gz?AWSAccessKeyId=AKIAZBZSXBIDLIVHIE7S&Expires=1595926760&Signature=0isY1oKcYedBI0rtxb5AJwXuIkY%3D
gb  https://flurry-rdd.s3.amazonaws.com/downloads/670106.json.gz?AWSAccessKeyId=AKIAZBZSXBIDLIVHIE7S&Expires=1595926744&Signature=iIVIb9lO6H4Dp58ktxTR3IoO2e0%3D
fm  https://flurry-rdd.s3.amazonaws.com/downloads/670110.json.gz?AWSAccessKeyId=AKIAZBZSXBIDLIVHIE7S&Expires=1595926784&Signature=7aibaIpKX9MUyJ2OnpR7r%2FwWJwc%3D
plus  https://flurry-rdd.s3.amazonaws.com/downloads/670108.json.gz?AWSAccessKeyId=AKIAZBZSXBIDLIVHIE7S&Expires=1595926810&Signature=xc4rEHGF2iU8ft%2F8%2FwWjH3GkE3o%3D
yo  https://flurry-rdd.s3.amazonaws.com/downloads/670109.json.gz?AWSAccessKeyId=AKIAZBZSXBIDLIVHIE7S&Expires=1595926832&Signature=IRfHbyGxWcJfKfhg66wE2IgAmwo%3D
""".split("\n")

for i in li:
  i = i.strip(" \n")
  if not i:
    continue
  i = i.split(" ")
  app = i[0].lower().replace("whatsapp", "")
  link = i[-1]
  name = link.split('/')[-1].split('?')[0]
  print(
    "#",
    app,
    "=",
    name[:-8],
  )
  print(
    f"""
mkdir -p ~/app/{app}
cd ~/app/{app}
rm -rf nohup.out
nohup wget -q -c "{link}" -O {name} &
    """
  )
